all:thread1 thread2
thread1:main1.cc
	@g++ $^ -o $@ -std=c++11 -lpthread
thread2:main2.cc
	@g++ $^ -o $@ -std=c++11 -lpthread
.PHONY: clean
clean:
	@rm -rf thread1
	@rm -rf thread2